COM_GetDefaultNXT
Returns the global default NXT handle if it was previously set
Contents
Syntax
h = COM_GetDefaultNXT()
Description
h = COM_GetDefaultNXT() returns the global default NXT handle h if it was previously set. The default global NXT handle is used by all NXT-Functions per default if no other handle is specified. To set this global handle the function COM_SetDefaultNXT is used.
Example
handle = COM_OpenNXT('bluetooth.ini', 'check'); COM_SetDefaultNXT(handle); MyNXT = COM_GetDefaultNXT(); % now MyNXT and handle refer to the same device
See also
COM_SetDefaultNXT, COM_OpenNXT, COM_OpenNXTEx
Signature
- Author: Linus Atorf (see AUTHORS)
- Date: 2008/07/07
- Copyright: 2007-2008, RWTH Aachen University